package com.example.service;

import com.example.entity.ClassTable;
import com.example.Repository.ClassTableRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ClassTableServiceImpl implements ClassTableService {

    private final ClassTableRepository classTableRepository;

    @Autowired
    public ClassTableServiceImpl(ClassTableRepository classTableRepository) {
        this.classTableRepository = classTableRepository;
    }

    @Override
    public List<ClassTable> findAllClass() {
        return classTableRepository.findAllClass();
    }
}
